package com.mtons.mblog.modules.entity;

import lombok.Data;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Tool.
 * @author yuzhong
 * @date 2019/2/27 16:36
 */
@Entity
@Table(name = "miu_tool")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@Data
public class Tool implements Serializable{

    private static final long serialVersionUID = 2884464022033369225L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id ;
    private String tags;
    private String name;
    @Temporal(value = TemporalType.TIMESTAMP)
    private Date created;
    private String desc;
    private Integer status;
    private String url;

}
